package com.joplus.housekeeper.bean;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.List;

/**
 * 聊天卡片
 * Created by bianxiang on 16/4/25.
 */
public class ChatCard implements Serializable {


//    {"subject":"票务","orderPhone":"15152631510","templateId":"tplate1459582035069tKQd","price":0,"orderMoney":112,"orderId":"order1463129861231CzMS","cardInfo":[{"key":"演出","value":"你好"},{"key":"时间","value":"2016-01-01T08:00","type":"datetime-local"},{"key":"场馆","value":"命运"}],"otherInfo":[{"key":"手机","value":"15152631510"},{"key":"用户","value":"白先生"},{"key":"备注","value":"你好"}]}
    /**
     * subject : 票务
     * orderPhone : 15152631510
     * cardInfo : [{"key":"演出","value":"你好"},{"key":"时间","value":"2016-01-01T08:00","type":"datetime-local"},{"key":"场馆","value":"命运"}]
     * otherInfo : [{"key":"手机","value":"15152631510"},{"key":"用户","value":"白先生"},{"key":"备注","value":"你好"}]
     * templateId : tplate1459582035069tKQd
     * price : 0
     * orderMoney : 111
     * orderId : order1459655906212PjmY
     */

    private String subject;
    private String rewardId;
    private String orderPhone;
    private String templateId;
    private String price;
    private String orderMoney;
    private String orderId;
    private String storedId;//储蓄卡Id;
    private String serOriginal;//商品原价
    private String serPrice;//商品现价
    private String chargeOriginal;//服务原价
    private String serCharge;//服务现价
    private String quantity;//预定人数
    private String serId;//服务人数
    private String orderNo;//
    private String orderType;
    private String accountId;
    private String remindTime;
    private String storedMsg;  //包包卡提示
    private String result;     //包包卡结果
    private String type;
    private String cardTitle;
    private String cardIv;
    private String cardHtml;
    private String category;
    private String gopageid;
    private String isSpecialRequirement;

    public String getCardIv() {
        return cardIv;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getGopageid() {
        return gopageid;
    }

    public void setGopageid(String gopageid) {
        this.gopageid = gopageid;
    }

    public void setCardIv(String cardIv) {
        this.cardIv = cardIv;
    }

    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getIsSpecialRequirement() {
        return isSpecialRequirement;
    }

    public void setIsSpecialRequirement(String isSpecialRequirement) {
        this.isSpecialRequirement = isSpecialRequirement;
    }

    public String getCardTitle() {
        return cardTitle;
    }

    public void setCardTitle(String cardTitle) {
        this.cardTitle = cardTitle;
    }

    public String getCardHtml() {
        return cardHtml;
    }

    public void setCardHtml(String cardHtml) {
        this.cardHtml = cardHtml;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStoredMsg() {
        return storedMsg;
    }

    public void setStoredMsg(String storedMsg) {
        this.storedMsg = storedMsg;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    private PlanTotalBean planTotalBean;
    private PlanRightNowBean planRightNowBean;

    public PlanRightNowBean getPlanRightNowBean() {
        return planRightNowBean;
    }

    public void setPlanRightNowBean(PlanRightNowBean planRightNowBean) {
        this.planRightNowBean = planRightNowBean;
    }

    public PlanTotalBean getPlanTotalBean() {
        return planTotalBean;
    }

    public void setPlanTotalBean(PlanTotalBean planTotalBean) {
        this.planTotalBean = planTotalBean;
    }

    public String getRemindTime() {
        return remindTime;
    }

    public void setRemindTime(String remindTime) {
        this.remindTime = remindTime;
    }

    private RecommandCardBean recommandCardBean;

    public String getStoredId() {
        return storedId;
    }

    public void setStoredId(String storedId) {
        this.storedId = storedId;
    }

    public RecommandCardBean getRecommandCardBean() {
        return recommandCardBean;
    }

    public void setRecommandCardBean(RecommandCardBean recommandCardBean) {
        this.recommandCardBean = recommandCardBean;
    }

    public String getStoreId() {
        return storedId;
    }

    public void setStoreId(String storedId) {
        this.storedId = storedId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getRewardId() {
        return rewardId;
    }

    public void setRewardId(String rewardId) {
        this.rewardId = rewardId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getSerId() {
        return serId;
    }

    public void setSerId(String serId) {
        this.serId = serId;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取商品原价
     *
     * @return
     */
    public String getSerOriginal() {
        return serOriginal;
    }

    /**
     * 获取服务原价
     *
     * @return
     */
    public String getChargeOriginal() {
        return chargeOriginal;
    }

    /**
     * 获取商品现价
     *
     * @return
     */
    public String getSerPrice() {
        return serPrice;
    }

    /**
     * 获取服务现价
     *
     * @return
     */
    public String getSerCharge() {
        return serCharge;
    }

    /**
     * @param serOriginal //商品原价
     */
    public void setSerOriginal(String serOriginal) {
        this.serOriginal = serOriginal;
    }

    /**
     * @param serPrice //商品现价
     */
    public void setSerPrice(String serPrice) {
        this.serPrice = serPrice;
    }

    /**
     * @param chargeOriginal //服务原价
     */
    public void setChargeOriginal(String chargeOriginal) {
        this.chargeOriginal = chargeOriginal;
    }

    /**
     * @param serCharge //服务现价
     */
    public void setSerCharge(String serCharge) {
        this.serCharge = serCharge;
    }


    /**
     * key : 演出
     * value : 你好
     */

    private List<CardInfoBean> cardInfo;
    /**
     * key : 手机
     * value : 15152631510
     */

    private List<OtherInfoBean> otherInfo;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getOrderPhone() {
        return orderPhone;
    }

    public void setOrderPhone(String orderPhone) {
        this.orderPhone = orderPhone;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(String orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public List<CardInfoBean> getCardInfo() {
        return cardInfo;
    }

    public void setCardInfo(List<CardInfoBean> cardInfo) {
        this.cardInfo = cardInfo;
    }

    public List<OtherInfoBean> getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(List<OtherInfoBean> otherInfo) {
        this.otherInfo = otherInfo;
    }

    @Override
    public String toString() {
        return "ChatCard{" +
                "subject='" + subject + '\'' +
                "message='" + message + '\'' +
                ", rewardId='" + rewardId + '\'' +
                ", orderPhone='" + orderPhone + '\'' +
                ", templateId='" + templateId + '\'' +
                ", price=" + price +
                ", orderMoney=" + orderMoney +
                ", orderId='" + orderId + '\'' +
                ", storedId='" + storedId + '\'' +
                ", serOriginal='" + serOriginal + '\'' +
                ", serPrice='" + serPrice + '\'' +
                ", chargeOriginal='" + chargeOriginal + '\'' +
                ", serCharge='" + serCharge + '\'' +
                ", quantity='" + quantity + '\'' +
                ", serId='" + serId + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", orderType='" + orderType + '\'' +
                ", accountId='" + accountId + '\'' +
                ", remindTime='" + remindTime + '\'' +
                ", recommandCardBean=" + recommandCardBean +
                ", cardInfo=" + cardInfo +
                ", otherInfo=" + otherInfo +
                ", storedMsg=" + storedMsg +
                ", result=" + result +
                '}';
    }

    public static class CardInfoBean {
        private String key;
        private String value;

        @Override
        public String toString() {
            return "CardInfoBean{" +
                    "key='" + key + '\'' +
                    ", value='" + value + '\'' +
                    '}';
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public static class OtherInfoBean {
        private String key;
        private String value;

        @Override
        public String toString() {
            return "OtherInfoBean{" +
                    "key='" + key + '\'' +
                    ", value='" + value + '\'' +
                    '}';
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }


    public String toJsonString() {
        Gson gson = new Gson();

        return gson.toJson(this);
    }
}
